Translate Python to C++

Correctness

Criteria Meet Specification

Code works as expected.

Code passes the provided tests in tests.cpp

'initialize_beliefs' works correctly.

'initialize_beliefs' is implemented the right way.

'sense' works correctly.

'sense' is implemented the right way.

'move' works correctly.

'move' is implemented the right way.

Code Quality

Criteria Meet Specification

Readability

Code quality issues should not make a project non-passing unless they are problematic enough that it is not possible to understand the code at all with a reasonable amount of effort.

Readability is important so try to go through your code before submitting to make sure that a reviewer will be able to provide the most helpful feedback for you.